package com.dingpeikeji.quickdeer.modules.rentproduct.entity;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;

/**
 * 整车发布审核Entity
 * @author dp
 * @version 2017-01-03
 */
public class TRentgroupAudit extends DataEntity<TRentgroupAudit> {
	
	private static final long serialVersionUID = 1L;
	
	// 审核结果的取值
	public static final String AUDITSTATUS_PASS = "1"; // 审核通过
	public static final String AUDITSTATUS_NOT_PASS = "2"; // 审核不通过
	public static final String AUDITSTATUS_WAIT = "3"; // 待审核
	public static final String AUDITSTATUS_STOP = "9"; // 已停用
	
	private Integer rentauditid;		// rentauditid
	private TRentgroup rentgroup;		// rentgrpid
	private String operaterid;		// operaterid
	private String auditopn;		// auditopn
	private String opndetail;		// opndetail
	private Date operatedate;		// operatedate
	
	public TRentgroupAudit() {
		super();
	}

	public TRentgroupAudit(String id){
		super(id);
	}

	public Integer getRentauditid() {
		return rentauditid;
	}

	public void setRentauditid(Integer rentauditid) {
		this.rentauditid = rentauditid;
	}
	
	public String getOperaterid() {
		return operaterid;
	}

	public void setOperaterid(String operaterid) {
		this.operaterid = operaterid;
	}
	
	@Length(min=1, max=1, message="auditopn长度必须介于 1 和 1 之间")
	public String getAuditopn() {
		return auditopn;
	}

	public void setAuditopn(String auditopn) {
		this.auditopn = auditopn;
	}
	
	@Length(min=0, max=200, message="opndetail长度必须介于 0 和 200 之间")
	public String getOpndetail() {
		return opndetail;
	}

	public void setOpndetail(String opndetail) {
		this.opndetail = opndetail;
	}
	
	public Date getOperatedate() {
		return operatedate;
	}

	public void setOperatedate(Date operatedate) {
		this.operatedate = operatedate;
	}

	public TRentgroup getRentgroup() {
		return rentgroup;
	}

	public void setRentgroup(TRentgroup rentgroup) {
		this.rentgroup = rentgroup;
	}	
	
}